package com.liu.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {

    @RequestMapping("/h")
    public String hello(Model model){
        model.addAttribute("msg","根据注解返回");
        System.out.println("------------------");
        return "success";
    }
}
